package com.baidu.bos.utils;

import java.io.Serializable;
import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import com.alibaba.fastjson.annotation.JSONField;

public class PageBean implements Serializable{
	private int currentPage;//当前页数
	private int pageSize;//每一页的记录数
	private DetachedCriteria detachedCriteria;//分页查询条件
	private int total;//总记录数
	private List rows;//当前页的数据集合
	
	@JSONField(serialize=false)
	public int getCurrentPage() {
		return currentPage;
	}
	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}
	@JSONField(serialize=false)
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	@JSONField(serialize=false)
	public DetachedCriteria getDetachedCriteria() {
		return detachedCriteria;
	}
	public void setDetachedCriteria(DetachedCriteria detachedCriteria) {
		this.detachedCriteria = detachedCriteria;
	}
	public int getTotal() {
		return total;
	}
	public void setTotal(int total) {
		this.total = total;
	}
	public List getRows() {
		return rows;
	}
	public void setRows(List rows) {
		this.rows = rows;
	}
	@Override
	public String toString() {
		return "PageBean [currentPage=" + currentPage + ", pageSize="
				+ pageSize + ", detachedCriteria=" + detachedCriteria
				+ ", total=" + total + ", rows=" + rows + "]";
	}
	
	
	
}
